package Generics;

/**
 * ClassName:GenericsDome002
 * Package:Gather.DataStructure
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/2/7-18:54
 * @Version:v1.0
 */
public class MyArrayListText001 {
    public static void main(String[] args) {
        MyArrayList001<String> list = new MyArrayList001<>();
        list.add("aaa");
        list.add("bbb");
        list.add("ccc");
        System.out.println(list);
        MyArrayList001<Integer> list1 = new MyArrayList001<>();
        list1.add(1);
        list1.add(2);
        list1.add(3);
        System.out.println(list1);
        Integer i = list1.get(2);
        System.out.println(i);
    }
}
